package com.example.sprintboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("category_closure")
public class CategoryClosure {
    @TableId(value = "ancestor_id",type = IdType.AUTO)
    private Integer ancestorId;
    @TableId(value = "descendant_id",type = IdType.AUTO)
    private Integer descendantId;
    private Integer depth;
}
